package com.example.pojo.entity.mybatisannotation;

import com.example.enums.mybatisannotation.UserSexEnum;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/9/26 15:16
 */
@Data
@ToString
public class User implements Serializable {
    private Long id;
    private String userName;
    private String passWord;
    private UserSexEnum userSex;
    private String nickName;

    public User() {
        super();
    }
    public User(String userName, String passWord, UserSexEnum userSex) {
        super();
        this.passWord = passWord;
        this.userName = userName;
        this.userSex = userSex;
    }

    public User(Long id,String userName,String passWord,UserSexEnum userSex,String nickName) {
        this.id = id;
        this.userName = userName;
        this.passWord = passWord;
        this.userSex = userSex;
        this.nickName = nickName;
    }
}
